package wyu.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dto.Result;
import com.entity.CarouselPost;
import org.springframework.stereotype.Service;
import wyu.mapper.CarouselMapper;

import java.util.List;
@Service
public class CarouselServiceImpl extends ServiceImpl<CarouselMapper, CarouselPost> implements CarouselService {
    @Override
    public Result getDetailedList() {

        /** todo
         * 需返回{@link com.entity.Post}、浏览量、回复量
         */
        List<CarouselPost> carouselPosts = list();
        return Result.ok(carouselPosts);
    }
}
